M[Symbol.dispose]
Bun

method

sqlite.Database.[Symbol.dispose]

Closes the database when using the async resource proposal

using db = new Database("myapp.db");
doSomethingWithDatabase(db);
// Automatically closed when `db` goes out of scope